<?php defined('SYSPATH') or die();?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>思途CMS{$coreVersion}</title>
    {template 'stourtravel/public/public_min_js'}
    {php echo Common::getCss('style.css,base.css,base_new.css'); }
    {php echo Common::getScript("uploadify/jquery.uploadify.min.js,product_add.js,choose.js,st_validate.js,jquery.colorpicker.js,jquery.jqtransform.js,imageup.js"); }
    {php echo Common::getCss('uploadify.css','js/uploadify/'); }
</head>

<body>

<!--顶部-->
<table class="content-tab">
    <tr>
        <td width="119px" class="content-lt-td" valign="top">
            {template 'stourtravel/public/leftnav'}
            <!--右侧内容区-->
        </td>
        <td valign="top" class="content-rt-td" style="overflow:auto;">
            <div class="cfg-header-bar">
                <div class="cfg-header-tab">
                    <span class="item"   onclick="location.href=SITEURL+'contract/admin/contract/index/{if isset($_GET['menuid'])}menuid/{$_GET['menuid']}/{/if}'"  >合同模板</span>
                    <span class="item"    onclick="location.href=SITEURL+'contract/admin/contract/config/{if isset($_GET['menuid'])}menuid/{$_GET['menuid']}/{/if}'" >乙方信息管理</span>
                    <span class="item"    onclick="location.href=SITEURL+'contract/admin/dispose/get_list/{if isset($_GET['menuid'])}menuid/{$_GET['menuid']}/{/if}'" >合同签订</span>
                    <span class="item"    onclick="location.href=SITEURL+'contract/admin/contract/set_partnerid/{if isset($_GET['menuid'])}menuid/{$_GET['menuid']}/{/if}'" >合同配置</span>
                    <span class="item on" onclick="changeTab(this)">签署人配置</span>
                </div>
                <a href="javascript:;" class="fr btn btn-primary radius mt-6 mr-10" onclick="window.location.reload()">刷新</a>
            </div>
            <form id="product_fm">
                <div class="product-add-div" >
                    <ul class="info-item-block">
                        <li>
                            <span class="item-hd">签署人选择{Common::get_help_icon('contract_signed')}：</span>
                            <div class="item-bd">
                                <label class="radio-label mr-20">
                                    <input type="radio" name="cfg_contract_signed" value="first_tourer" {if $config['cfg_contract_signed'] == 'first_tourer'}checked{/if}>
                                    首位旅客
                                </label>
                                <label class="radio-label mr-20">
                                    <input type="radio" name="cfg_contract_signed" value="all_tourer" {if $config['cfg_contract_signed'] == 'all_tourer'}checked{/if}>
                                    全部旅客
                                </label>
                                <label class="radio-label">
                                    <input type="radio" name="cfg_contract_signed" value="hand" {if $config['cfg_contract_signed'] == 'hand' || empty($config['cfg_contract_signed'])}checked{/if}>
                                    手动选择
                                </label>
                            </div>
                        </li>
                    </ul>
                </div>
                <input type="hidden" id="webid" name="webid" value="0">
            </form>
            <div class="clear clearfix pt-20 pb-20">
                <a class="btn btn-primary radius size-L ml-115" id="save_btn" href="javascript:;">保存</a>
            </div>
        </td>
    </tr>
</table>

<script>
    $(document).ready(function(e) {
        $("#product_fm input").st_readyvalidate();
        $("#save_btn").click(function(e) {
            ST.Util.showMsg('保存中',6,10000);
            $.ajaxform({
                url   :  SITEURL+"contract/admin/contract/set_signed/action/save",
                method  :  "POST",
                form  : "#product_fm",
                dataType  :  "json",
                success  :  function(result)
                {
                    if(result.status!=true)
                    {
                        ZENG.msgbox._hide();
                        ST.Util.showMsg('保存失败',5);
                    }
                    else
                    {
                        ST.Util.showMsg('保存成功',4)
                        window.location.reload();
                    }
                    window.is_saving = 0;
                }});
        });
    });

</script>



</body>
</html>
